#!/usr/bin/perl

# Copyright notice

# Uncomment the next line if you haven't got full access to the server, so you can't install the module on @INC.
# Now put the module in the same dir as this file.
# use lib qw(.); 

use strict; use warnings; use yalw::yalw;
my $yalw=new yalw::yalw;
my $themesheet="default";
my $url="http://localhost/yalw/";
my $title="Yet Another Log Watcher Sample Title";
# Do not touch this line:
print $yalw->print_start($url,$title, $themesheet);

# Put here the plugins you want to execute and its configuration variables. 
# Look under docs/plugins/pluginname for info on its config vars.
# Example:

 my %title_config=('title'=>"title.png",'url'=>$url);
 print $yalw->use_plugin('title',%title_config);

 my %sysinfo_config=('title'=>'System Information','active'=>'date,memfree,unamer');
 print $yalw->use_plugin('sysinfo',%sysinfo_config);

 my %linecount_config=(title=>'','text'=>'Lines in your mailbox: ','file'=>'/var/spool/mail/xayon');
 print $yalw->use_plugin('linecount',%linecount_config);

 my %printfile_config=('title'=>'Syslog','file'=>'/var/log/syslog','start'=>'0',end=>'20');
 print $yalw->use_plugin('printfile',%printfile_config);

 my %formatfile_config=('title'=>'ToDo things','file'=>'/home/xayon/temp/To-Do');
 print $yalw->use_plugin('formatfile',%formatfile_config);

# Do not touch this line:
print $yalw->print_end;

